<?php

	/*
	const: SMUOI_PREFIX
		Root of etc, public & private directories
	*/
	define('SMUOI_PREFIX', SMUOI_DIR.'/data');

	/*
	const: DSK_DIR
		Location private desktop data should be saved
	*/
	define('DSK_DIR',  SMUOI_PREFIX.'/private');
	
	/*
	const: DOC_DIR
		Parent directory to public document roots.
		They need not all reside in the same directory, but if they do then DOC_DIR is a handy constant.
	*/
	define('DOC_DIR', SMUOI_PREFIX.'/public');
	
	/*
	const: DSK_ROOT
		Desktop document root.  All desktop subdomains should point to this directory
	*/
	define('DSK_ROOT', DOC_DIR.'/smrde');
	
	/*
		Log names are formatted Y-m-d@H - if you're on a distant remote host you can keep yourself oriented
		see http://es.php.net/manual/en/timezones.php for a list of supported timezones.
	*/
	date_default_timezone_set('Europe/London');
	
	/*
	const: ERROR_LOGGING
		Level of errors to be logged, bitwise as per error_reporting
	*/
	define('ERROR_LOGGING', (E_ALL & ~E_STRICT));
	
	/*
	constants: Cruft directory symlink targets.
		SMUOI_CRUFT_LOG_TARGET - target directory to write logs to. Default /var/log/smuoi
		SMUOI_CRUFT_TMP_TARGET - target directory to write tmp data to. Default /tmp/smuoi
		SMUOI_CRUFT_LOCAL_TARGET - target directory for processing files. Default /var/tmp/smuoi
			
		Define any of these values as false to use the cruft directory as parent instead.
		See the <Cruft Directory README>.
	*/
	define('SMUOI_CRUFT_LOCAL_TARGET', '/var/tmp/smuoi');
	define('SMUOI_CRUFT_LOG_TARGET', '/var/log/smuoi');
	define('SMUOI_CRUFT_TMP_TARGET', '/tmp/smuoi');
	
	
	## ENVIRONMENT VARIABLE DEFAULTS ##
	## Uncommenting these definitions will set global defaults for SMUOI environment variables
	
	/*
	const: SMUOI_RUN
		Run these extensions.  PARSE and SCRIPT both imply RUN.
	*/
	#define('SMUOI_RUN', '[html,php]');
	
	/*
	const: SMUOI_SCRIPT
		Run these extensions, and parse for PHP. PHP is always parsed first, should you mix SCRIPT and PARSE extensions
	*/
	#define('SMUOI_SCRIPT', '[php]');
	
	/*
	const: SMUOI_PARSE
		Run these extensions, and parse for smurlies. 
	*/
	#define('SMUOI_PARSE', '[html]');
	
	/*
	const: SMUOI_PERMIT_HANDOVER
		Files that invoke SMUOI but are not run must have one of these extensions in order for SMUOI to permit handover 
		to that file, which will then run itself as a PHP script.
		This directive is an important security failsafe.
		You may uncomment this to globally permit handover to PHP files, but _DO NOT_ alter it unless you're entirely 
		aware of the security implications. 
	*/
	#define('SMUOI_PERMIT_HANDOVER', '[php]');
	
	/*
	const: SMUOI_ESCAPE_XPIS
		If you wish you could use short open tags in files with XML processing instructions, Smuoi can help you at the 
		expense of some perl regex overhead.
		Any instruction beginning <? but not immediately followed by whitespace, "=" or "php" will be escaped and 
		unescaped when PHP is done.
	*/
	#define('SMUOI_ESCAPE_XPIS', 1);


